<template>
  <view class="my-search" :style="{ backgroundColor: bgColor }">
    <view class="input" :style="{ borderRadius: radius + 'rpx' }" @click="$emit('click')">
      <uni-icons type="search" size="17"></uni-icons>
      <text>请输入搜索内容</text>
    </view>
  </view>
</template>

<script>
  export default {
    name:"MySearch",
    data() {
      return {
        
      };
    },
    props: {
      bgColor: {
        type: String,
        default: '#c00000'
      },
      radius: {
        type: Number,
        default: 40
      }
    }
  }
</script>

<style lang="scss" scoped>
.my-search {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  
  .input {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 95%;
    height: 75%;
    background-color: white;
    
    text {
      margin-left: 20rpx;
      font-size: 26rpx;
      color: gray;
    }
  }
}
</style>